﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Practices.Prism.ViewModel;
using System.Collections.ObjectModel;
using HSE.Common;
using System.Linq;
using System.Collections.Generic;


namespace HSE
{
    public class WhylViewModel : NotificationObject
    {
        private string _selectModule;
        public string SelectModule
        {
            get
            {
                return this._selectModule;
            }

            set {
                this._selectModule = value;
                this.RaisePropertyChanged("SelectModule");
            }
        }

        private ObservableCollection<ToolBarNaviInfo> _functions;
        public ObservableCollection<ToolBarNaviInfo> Functions
        {
            get
            {
                return this._functions;
            }

            set
            {

                this._functions = value;
                this.RaisePropertyChanged("Functions");
            }
        }

        

        public WhylViewModel()
        {
            /*
             * <li class="tooltip" title="2013.8.3大牛地ZD023基层队岗前宣誓"><img  alt="#" width="500" height="360" src="assets/whyl/gqxs.jpg"/><br/>岗前宣誓</li> 
							  <li class="tooltip" title="2013.7.3中石化新员工宣誓"><img  alt="#" width="500" height="360" src="assets/whyl/xygxs1.jpg"/><br/>新员工宣誓</li> 
							  <li class="tooltip" title="2013.2.3鄂北ZD066基层队开钻宣誓"><img  alt="#" width="500" height="360" src="assets/whyl/kzxs1.jpg"/><br/>开钻宣誓</li> 
							  <li class="tooltip" title="2013.1.23大牛地项目部出队宣誓"><img  alt="#" width="500" height="360" src="assets/whyl/cdxs.jpg"/><br/>出队宣誓</li> 
							  <li class="tooltip" title="2013.6.3大牛地油气田亲情照片墙"><img  alt="#" width="500" height="360" src="assets/whyl/qqjy.jpg"/><br/>亲情照片墙</li> 
							  <li class="tooltip" title="2013.4.13先进工作者荣誉称号"><img  alt="#" width="500" height="360" src="assets/whyl/bz.jpg"/><br/>荣誉称号</li> 
							  <li class="tooltip" title="2013.5.4大牛地项目部新员工宣誓"><img  alt="#" width="500" height="360" src="assets/whyl/xygxs2.jpg"/><br/>新员工宣誓</li> 
							  <li class="tooltip" title="2013.8.13大牛地ZD011钻井队开钻宣誓"><img  alt="#" width="500" height="360" src="assets/whyl/gqxs2.jpg"/><br/>开钻宣誓</li> 
							  
							  <li class="tooltip" title="2013.3.23岗前宣誓"><img  alt="#" width="500" height="360" src="assets/whyl/gqxs1.jpg"/><br/>岗前宣誓</li> 
							  <li class="tooltip" title="2013.6.23录井公司岗前宣誓"><img  alt="#" width="500" height="360" src="assets/whyl/cdxs1.jpg"/><br/>新员工宣誓</li> 
             * */
            //ObservableCollection<Message> temps = new ObservableCollection<Message>();
            //temps.Add(new Message() { Notice = "2013.8.3大牛地ZD023基层队岗前宣誓", Image = "../Images/whyl/gqxs.jpg" });
            //temps.Add(new Message() { Notice = "2013.7.3中石化新员工宣誓", Image = "../Images/whyl/xygxs1.jpg" });
            //temps.Add(new Message() { Notice = "2013.2.3鄂北ZD066基层队开钻宣誓", Image = "../Images/whyl/xygxs1.jpg" });
            //temps.Add(new Message() { Notice = "2013.1.23大牛地项目部出队宣誓", Image = "../Images/whyl/kzxs1.jpg" });
            //temps.Add(new Message() { Notice = "2013.6.3大牛地油气田亲情照片墙", Image = "../Images/whyl/qqjy.jpg" });
            //temps.Add(new Message() { Notice = "2013.4.13先进工作者荣誉称号", Image = "../Images/whyl/bz.jpg" });
            //temps.Add(new Message() { Notice = "2013.2.3鄂北ZD066基层队开钻宣誓", Image = "../Images/whyl/xygxs1.jpg" });
            //temps.Add(new Message() { Notice = "2013.5.4大牛地项目部新员工宣誓", Image = "../Images/whyl/xygxs2.jpg" });
            //temps.Add(new Message() { Notice = "2013.8.13大牛地ZD011钻井队开钻宣誓", Image = "../Images/whyl/gqxs2.jpg" });
            //temps.Add(new Message() { Notice = "2013.3.23岗前宣誓", Image = "../Images/whyl/gqxs1.jpg" });
            //temps.Add(new Message() { Notice = "2013.6.23录井公司岗前宣誓", Image = "../Images/whyl/cdxs1.jpg" });
            //this.Messages = temps;

            //ObservableCollection<SysModuleViewModel> tempsf = new ObservableCollection<SysModuleViewModel>();
            //tempsf.Add(new SysModuleViewModel() { ModuleName = "实时动态", NameSpace = "HSE.Whyl_SsdtModule", Icon = "../Images/dashboard/aqxs.png", Newnum = 3 });
            //tempsf.Add(new SysModuleViewModel() { ModuleName = "亲情园地", NameSpace = "HSE.Whyl_SsdtModule", Icon = "../Images/dashboard/qqyd.png", Newnum = 8 });
            //tempsf.Add(new SysModuleViewModel() { ModuleName = "荣誉共享", NameSpace = "HSE.Whyl_SsdtModule", Icon = "../Images/dashboard/rygx.png", Newnum = 0 });
            //tempsf.Add(new SysModuleViewModel() { ModuleName = "文化手册", NameSpace = "HSE.Whyl_SsdtModule", Icon = "../Images/dashboard/123.png", Newnum = 3 });
            //tempsf.Add(new SysModuleViewModel() { ModuleName = "宣传用语", NameSpace = "HSE.Whyl_SsdtModule", Icon = "../Images/dashboard/xcyy.png", Newnum = 0 });
            ToolBarNaviInfo naviinfo = SystemVar.SysNavi.FirstOrDefault(i => i.Name == "文化引领");
            this.Functions = naviinfo.SubItems;
        }
    }
}
